
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    function checkForm(){
        var number=document.getElementById("number").value;
        if(number==null||number==""){
            document.getElementById("error").innerHTML="名称不能为空！";
            return false;
        }
        return true;
    }
</script>
<div class="data_list">
    <div class="data_list_title">

        修改寝室号
    </div>
    <form action="${pageContext.request.contextPath}/dormBuild/updateDorm" method="post" onsubmit="return checkForm()">
        <div class="data_form" >
            <input type="hidden" id="id" name="id" value="${dormitory.id}"/>
            <input type="hidden" id="bid" name="bid" value="${dormitory.bid}"/>
            <table align="center">
                <tr>
                    <td><font color="red">*</font>名称：</td>
                    <td><input type="text" id="number"  name="number" style="margin-top:5px;height:30px;" value="${dormitory.number}"/></td>
                </tr>
            </table>
            <div align="center">
                <input type="submit" class="btn btn-primary" value="修改"/>
                &nbsp;<button class="btn btn-primary" type="button" onclick="javascript:history.back()">返回</button>
            </div>
            <div align="center">
                <font id="error" color="red">${error}</font>
            </div>
        </div>
    </form>
</div>

